package com.example.activititest.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.activititest.base.ResultDTO;
import com.example.activititest.service.ActivitiDeploymentService;
import com.example.activititest.service.ActivitiModelService;
import com.example.activititest.utils.ResultUtils;

/**
 * 流程部署控制器
 */
@RestController
@RequestMapping("activitiDeployment")
public class ActivitiDeploymentController {
	
    @Autowired
    private ActivitiDeploymentService activitiDeploymentService;
	
	
    /**
     * 分页查询
     *
     * @param params 查询参数
     * @return RestResponse
     */
    @RequestMapping("/list")
    public ResultDTO list(@RequestParam Map<String, Object> params) {
         List list = activitiDeploymentService.queryPage(params);
         ResultDTO dto=ResultUtils.getSuccess(list);
        return dto;
    }
}
